﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HtmlAgilityPack;

namespace LearnCrawler
{
	public class HAP
	{
		public string ReadXH(string html)
		{
			var doc = new HtmlDocument();
			doc.LoadHtml(html);
			var node = doc.DocumentNode.SelectNodes("//div[@id='chaxun_c']");
			var sb = new StringBuilder();
			foreach (var i in node)
			{
				sb.Append(i.InnerHtml);
			}
			return sb.ToString();
		}
	}
}
